package com.example.asapp.bean;

import lombok.Data;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

@Data
public class PageInfo {

    Integer pageIndex;

    Integer pageSize;

    public Pageable pageable(){
        return  PageRequest.of(pageIndex,pageSize);
    }
}
